#include<stdio.h>
#include<conio.h>
void main()
{
	long m1, m2, m3, m4, m5, per;

	clrscr();

	printf("\n\n\n\n\t\tEnter marks of five different subjects: ");

	scanf("%ld%ld%ld%ld%ld", &m1, &m2, &m3, &m4, &m5);

	per = (m1 + m2 + m3 + m4 + m5)*100/500;

	if (per >= 60)

	printf("\n\n\n\t\t\tFirst Division ");

	else

	{
		if (per >= 50)

		printf("\n\n\n\t\t\tSecond division ");

		else

		{
			if(per >= 40)

			printf("\n\n\n\t\t\tThird Division  ");

			else

				printf("\n\n\n\n\t\t\tFail   ");
		}
	}

	getch();
}
